package club.zhangliyuanblog.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyuan.zhang
 * @date 2021/4/20 11:04
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment")
    public String payment() {
        return "spring with consul:" + serverPort + "\t" + System.currentTimeMillis();
    }
}
